package com.zk.atm.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zengqun
 * @remark 定义的整体项目常量类
 * @date 2012-9-24
 * @version 1.0
 */
public class ConstantsAtmp {

	/**
	 * @author zengqun
	 * @remark 接收atmc客户端的状态，定义设备ip，此值惟一，用其作为主记录列，生成主键；用此主键
	 *         关联其它状态
	 * @date 2012-9-24
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_DEVICE_IP_NAME="DeviceIP";
	
	/**
	 * @author zengqun
	 * @remark 接收atmc客户端的状态，定义拆分状态值的分隔字符串
	 * @date 2012-9-24
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_SPLIT_SIGN="\\|";
	
	/**
	 * @author zengqun
	 * @remark 接收atmc客户端的状态，定义拆分:状态值的key的分隔字符串
	 * @date 2012-9-24
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_SPLIT_SIGN_KEY="\\:";
	
	/**
	 * @author zengqun
	 * @remark 接收atmc客户端的状态，定义拆分状态值的value:分隔字符串
	 * @date 2012-9-24
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_SPLIT_SIGN_VALUE="\\;";
	
	/******************start 定义JSON常用的常量值****************************/
	/**
	 * @author zengqun
	 * @remark gatewayservlet,bpmvo中的ret常量名; 保存或修改或删除用。
	 * @date 2012-9-25
	 * @version 1.0
	 */
	public static final String ATMP_GATEWAYSERVLET_CONVERT_BPMVO_TO_JSON_RET="ret";
	
	/**
	 * @author zengqun
	 * @remark gatewayservlet,bpmvo中的message常量名
	 * @date 2012-9-25
	 * @version 1.0
	 */
	public static final String ATMP_GATEWAYSERVLET_CONVERT_BPMVO_TO_JSON_MESSAGE="message";
	
	/**
	 * @author zengqun
	 * @remark gatewayservlet,bpmvo中的voList常量名,查询使用
	 * @date 2012-9-25
	 * @version 1.0
	 */
	public static final String ATMP_GATEWAYSERVLET_CONVERT_BPMVO_TO_JSON_VOLIST="data";
	/******************end 定义JSON常用的常量值****************************/
	
	/**
	 * @author zengqun
	 * @remark 存取数据库连接的conn常量名
	 * @date 2012-9-26
	 * @version 1.0
	 */
	public static final String ATMP_CONNECTION_NAME="conn";
	
	/***********************start 定义设备预警(指打印机,盖章机少油,少墨的情况);报停的状态(报停指超出1小时,未发送状态的)等状态**************************************************/
	/**
	 * @author zengqun
	 * @remark 定义设备预警(指打印机,盖章机少油,少墨的情况)
	 * @date 2012-9-27
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_EARLY_WARNING="Warning";
	
	/**
	 * @author zengqun
	 * @remark 定义设备正常状态
	 * @date 2012-9-27
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_INSERVICE="InService";
	
	/**
	 * @author zengqun
	 * @remark 定义设备暂停服务
	 * @date 2012-9-27
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_OUTSERVICE="OutService";
	
	/**
	 * @author zengqun
	 * @remark 定义设备故障
	 * @date 2012-9-27
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_DEVICEERROR="DeviceError";
	
	/**
	 * @author zengqun
	 * @remark 定义报停的状态(报停指超出1小时,未发送状态的)
	 * @date 2012-9-27
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_REPORT_QUIT="Quit";
	
	//定义2个基本状态:少纸,少油.
	/**
	 * @author zengqun
	 * @remark 定义少纸,凭单,日志,通用打印机,通用纸盒1,2,3,4少纸的状态.
	 * @date 2012-9-27
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_LOWOFPAPER="LowOfPaper";
	
	/**
	 * @author zengqun
	 * @remark 定义少油,主要是盖章机.
	 * @date 2012-9-27
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_LOWINK="LowInk";
	/***********************end 定义设备预警(指打印机,盖章机少油,少墨的情况);报停的状态(报停指超出1小时,未发送状态的)**************************************************/
	
	/***********************start 定义atmp_device_status_current,atmp_device;status_list,device_list两个url常量的值************************/
	/**
	 * @author zengqun
	 * @remark atmp_device_status_current定义action_list的方法常量名status_list
	 * @date 2012-10-9
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_ACTION_METHOD="status_list";
	
	/**
	 * @author zengqun
	 * @remark atmp_device定义action_list的方法常量名device_list
	 * @date 2012-10-9
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_ACTION_METHOD="device_list";
	
	/**
	 * @author zengqun
	 * @remark atmp_device定义action_list的方法常量名device_detail_list
	 * @date 2012-10-9
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_ACTION_DETAIL_METHOD="show_status_detial";
	
	/**
	 * @author zengqun
	 * @remark atmp_device定义保存的方法常量名save
	 * @date 2012-10-10
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_ACTION_SAVE_METHOD="device_save";
	
	/**
	 * @author zengqun
	 * @remark atmp_device定义删除的方法常量名device_list
	 * @date 2012-10-10
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_ACTION_DEL_METHOD="device_del";

	/**
	 * @author zengqun
	 * @remark atmp_device定义删除的方法常量名device_list
	 * @date 2012-10-10
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_RETURN_TYPE_XML = "xml";
	
	/**
	 * @author zengqun
	 * @remark atmp_device定义存取form的常量名
	 * @date 2012-10-15
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_FORM = "device_form";

	/**
	 * @author zengqun
	 * @remark atmp_device_type定义存取form的常量名
	 * @date 2012-10-16
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_TYPE_LIST = "device_type_list";
	
	/**
	 * @author zengqun
	 * @remark atmp_device_type:保存的常量名
	 * @date 2012-10-16
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_TYPE_SAVE = "device_type_save";
	
	/**
	 * @author zengqun
	 * @remark atmp_device_type:删除的常量名
	 * @date 2012-10-16
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_TYPE_DEL = "device_type_del";
	
	/**
	 * @author zengqun
	 * @remark atmp_device_type_children定义存取的常量名
	 * @date 2012-10-16
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_TYPE_CHILDREN_LIST = "device_type_children_list";
	
	/**
	 * @author zengqun
	 * @remark atmp_device_type_children:保存的常量名
	 * @date 2012-10-16
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_TYPE_CHILDREN_SAVE = "device_type_children_save";
	
	/**
	 * @author zengqun
	 * @remark atmp_device_type_children:删除的常量名
	 * @date 2012-10-16
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_TYPE_CHILDREN_DEL = "device_type_children_del";
	
	/**
	 * @author zengqun
	 * @remark atmp_org 定义存取的常量名
	 * @date 2012-10-18
	 * @version 1.0
	 */
	public static final String ATMP_ORG_LIST = "atmp_org_list";
	
	/**
	 * @author zengqun
	 * @remark atmp_org:保存的常量名
	 * @date 2012-10-18
	 * @version 1.0
	 */
	public static final String ATMP_ORG_SAVE = "atmp_org_save";
	
	/**
	 * @author zengqun
	 * @remark atmp_org:删除的常量名
	 * @date 2012-10-18
	 * @version 1.0
	 */
	public static final String ATMP_ORG_DEL = "atmp_org_del";

	/**
	 * @author zengqun
	 * @remark 查看设备状态明细,去掉不需要显示的列:时间差列,用于判断是否报停
	 * @date 2012-10-19
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_CURRENT_MINUTES_TO_NOW_MARK = "minutes_from_time_mark_to_now";

	/**
	 * @author zengqun
	 * @remark 查看设备状态明细,去掉不需要显示的:扩展列
	 * @date 2012-10-19
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_CURRENT_STANDBY_COLUMN = "standby_column";
	
	/**
	 * @author zengqun
	 * @remark 查看设备状态明细,去掉不需要显示的:id列
	 * @date 2012-10-19
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_CURRENT_DEVICE_ID = "device_id";
	
	/**
	 * @author zengqun
	 * @remark 查看设备状态明细,去掉不需要显示的:id列
	 * @date 2012-10-19
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_CURRENT_DEVICE_STATUS_ID = "device_status_id";
	
	/**
	 * @author zengqun
	 * @remark 查看设备状态明细,组合key的分隔符,用于根据status_current的列名,value取出,bpm_dictvalue表中
	 *         对应的列表,状态值所对应的:中文状态
	 * @date 2012-10-19
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_PATH_SIGN_UNDER_LINE="_";

	/**
	 * @author zengqun
	 * @remark 查看设备状态明细,用于显示count的参数,比如盖章机盖章张数,
	 *         单/多张扫描仪扫描张数等
	 * @date 2012-10-20
	 * @version 1.0
	 */
	/*******************start 设置设备状态表中,value的值可直接显示在状态列中的:关键字列***********************/
	public static final String ATMP_DEVICE_STATUS_CURRENT_COUNT = "count";
	public static final String ATMP_DEVICE_STATUS_CURRENT_DEVICE_NAME = "device_name";
	public static final String ATMP_DEVICE_STATUS_CURRENT_DEVICETYPE = "devicetype";
	public static final String ATMP_DEVICE_TYPE_CODE_KEY = "type_code";
	public static final String ATMP_DEVICE_TYPE_NAME_KEY = "type_name";
	public static final String ATMP_DEVICE_STATUS_CURRENT_DEVICEIP = "deviceip";
	public static final String ATMP_DEVICE_STATUS_CURRENT_NETWORKCODE = "networkcode";
	public static final String ATMP_DEVICE_STATUS_CURRENT_DEVICECODE = "devicecode";
	public static final String ATMP_DEVICE_STATUS_CURRENT_TIMEMARK = "time_mark";
	/*******************end 设置设备状态表中,value的值可直接显示在状态列中的:关键字列***********************/

	/**
	 * @author zengqun
	 * @remark 存取orgForm的变量名
	 * @date 2012-10-20
	 * @version 1.0
	 */
	public static final String ATMP_ORG_FORM_ARGS_NAME = "org_form";

	/**
	 * @author zengqun
	 * @remark 存取cmd的变量名
	 * @date 2012-10-20
	 * @version 1.0
	 */
	public static final String ATMP_CMD_METHOD_KEY_NAME = "cmd";
	
	/**
	 * @author zengqun
	 * @remark 生成atmp_org保存界面,下拉选择parent_org的选择框
	 * @date 2012-10-21
	 * @version 1.0
	 */
	public static final String ATMP_ORG_GET_ORG_LIST_FOR_COMBOX="get_org_list_for_combox";
	
	/**
	 * @author zengqun
	 * @remark 生成atmp_type保存界面,下拉选择parent_org的选择框
	 * @date 2012-10-21
	 * @version 1.0
	 */
	public static final String ATMP_ORG_GET_DEVICE_TYPE_LIST_FOR_COMBOX="get_device_type_list_for_combox";

	/**
	 * @author zengqun
	 * @remark 如果是:机构管理,选择父机构,则不加载当前机构;如果是设备管理,则需要加载所有的机构; 参数名
	 * @date 2012-10-21
	 * @version 1.0
	 */
	public static final String ATMP_ORG_LOAD_ALL_DATA_KEY = "query_all";

	/**
	 * @author zengqun
	 * @remark 生成atmp_child_type保存界面,下拉选择设备名称的选择框
	 * @date 2012-10-22
	 * @version 1.0
	 */
	public static final String ATMP_ORG_GET_DICT_DEVICE_NAME_LIST_FOR_COMBOX = "get_dict_device_name_list_for_combox";

	/**
	 * @author zengqun
	 * @remark 设备更新保存时,校验IP地址惟一
	 * @date 2012-10-25
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_CHECK_IP_ADDRESS_IS_ONLY_ONE = "check_ip_is_only_one";

	/**
	 * @author zengqun
	 * @remark 设备监控,显示交易汇总
	 * @date 2012-11-6
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_STATUS_SHOW_TRADE_TOTAL = "show_trade_total";

	/**
	 * @author zengqun
	 * @remark 设备监控,联查交易记录,执行导出功能
	 * @date 2012-11-13
	 * @version 1.0
	 */
	public static final String ATMP_DEVICE_TRADE_EXPORT = "export_trade_list";

	/**
	 * @author zengqun
	 * @remark 大堂经理查询列表
	 * @date 2012-11-22
	 * @version 1.0
	 */
	public static final String ATMP_MANAGER_LIST = "manager_list";
	
	/**
	 * @author zengqun
	 * @remark 大堂经理保存
	 * @date 2012-11-22
	 * @version 1.0
	 */
	public static final String ATMP_MANAGER_SAVE = "manager_save";
	
	/**
	 * @author zengqun
	 * @remark 大堂经理保存
	 * @date 2012-11-22
	 * @version 1.0
	 */
	public static final String ATMP_MANAGER_DELETE = "manager_delete";
	
	/**
	 * @author zengqun
	 * @remark 大堂经理列表,密码重置
	 * @date 2012-11-22
	 * @version 1.0
	 */
	public static String ATMP_MANAGER_RESET_PWD = "manager_reset_pwd";
	
	/*****************************start 定义设备交易记录表中的几个状态*******************************/
	/**
	 * @author zengqun
	 * @remark 设备监控,联查交易记录,执行导出功能时,操作结果,是否异常交易的map集合值
	 * @date 2012-11-14
	 * @version 1.0
	 */
	public static Map MAP_RESULTS=new HashMap<String,String>();
	/**
	 * @author zengqun
	 * @remark 设备监控,联查交易记录,执行导出功能时,(审批)状态码的map集合值
	 * @date 2012-11-14
	 * @version 1.0
	 */
	public static Map MAP_AUDIT_STATUS=new HashMap<String,String>();
	/**
	 * @author zengqun
	 * @remark 设备监控,联查交易记录,执行导出功能时,是否轧帐的map集合值
	 * @date 2012-11-14
	 * @version 1.0
	 */
	public static Map MAP_IS_CLEAN_MACHINE=new HashMap<String,String>();
	static {
		MAP_RESULTS.put("0", "异常交易");
		MAP_RESULTS.put("1", "正常交易");
		
		MAP_AUDIT_STATUS.put("0","未审核");
		MAP_AUDIT_STATUS.put("1","已审核");
		MAP_AUDIT_STATUS.put("2","已退票");
		
		MAP_IS_CLEAN_MACHINE.put("0","未轧帐");
		MAP_IS_CLEAN_MACHINE.put("1","已轧帐");
		
	}
}
